<me:UIGAAUF
    x:Class="WPFExcelReport.YGAAUF"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
     xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
     xmlns:me="clr-namespace:WPFExcelReport" 
     xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
     xmlns:YB="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIGAAUF.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGAAUF.Resources>
    <DataGrid Grid.Row="1" Grid.Column="0" Margin="0,1,0,0"  
                              FontSize="12"
                              CanUserReorderColumns="True"  
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                              VerticalScrollBarVisibility="Auto"
                              RowDetailsVisibilityMode="VisibleWhenSelected"  VerticalAlignment="Top"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                               Name="dlgMaster"  
                              IsReadOnly="True" 
                             ItemsSource="{Binding Source={StaticResource vwMaster}}"  
                  >
        <DataGrid.Columns>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=类型}}" Binding="{Binding GAAUFMSL}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=品种}}" Binding="{Binding GAART}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=版本}}" Binding="{Binding GAVAR}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=说明}}" Binding="{Binding GSGARNBEZ,Converter={StaticResource ResourceKey=gb2312}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding GAFARBE,Converter={StaticResource ResourceKey=gb2312}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=需求}}" Binding="{Binding Path=GAKG1, Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=预留}}" Binding="{Binding Path=GAKG2, Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=仓库}}" Binding="{Binding Path=GAKG3, Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=车间}}" Binding="{Binding Path=GAKG5, Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=差异}}" Binding="{Binding Path=GAKG0, Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=开始}}" Binding="{Binding GADATBIS}" Width="Auto"/>
        </DataGrid.Columns>
    </DataGrid>
 </me:UIGAAUF>
